<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>sql配置</title>
    <link href="/static/css/controls.css" rel="stylesheet"/>
    <link href="/static/css/engine.css" rel="stylesheet">
    <script src="/bower_components/requirejs/require.js" data-main="/static/app.js"
            data-bootstrap-modules="'system2/component/remote/RemoteModule'"></script>
</head>
<body ng-controller="RemoteController" style="height: auto">
<div class="engine-popup">
    <form name="RemoteModelForm" g-validator="RemoteModel_{{add?'Save':'Update'}}" data-invalid-msg="tooltipMessenger">
        <input type="hidden" name="id" ng-model="remote.id"/>
        <input type="hidden" name="projectId" ng-model="remote.projectId"/>
        <input type="hidden" name="projectCode" ng-model="remote.projectCode"/>
        <div class="attribute-form-group" style="width: 48%;float: left">
            <div class="attribute-form-group-l">远程名称:</div>
            <div class="attribute-form-group-r">
                <input type="text" name="remoteName" ng-model="remote.remoteName" />
            </div>
            <div class="clear"></div>
        </div>
        <div class="attribute-form-group" style="width: 48%;float: left">
            <div class="attribute-form-group-l">服务编码:</div>
            <div class="attribute-form-group-r">
                <input type="text" name="remoteCode" ng-model="remote.remoteCode" />
            </div>
            <div class="clear"></div>
        </div>
        <!--<div class="attribute-form-group">
            <div class="attribute-form-group-l">请求结构:</div>
            <div class="attribute-form-group-r">
                <textarea  name="dataSourceName" ng-model="remote.remoteConfig" style="width: 70%" rows="10" >
                 </textarea>
            </div>
            <div class="clear"></div>
        </div>-->
        <div>
            <div class="attribute-form-group"  style="width:33%;float: left">
                <div >请求结构:</div>
                <div class="attribute-form-group-r">
                    <textarea  name="remoteConfig" style="height: 200px" ng-model="remote.remoteConfig"  rows="10" >
                     </textarea>
                </div>
                <div class="clear"></div>
            </div>
            <div class="attribute-form-group"  style="width:33%;float: left">
                <div >入参配置:</div>
                <div class="attribute-form-group-r" >
                    <textarea  name="remoteParams" style="height: 200px" ng-model="remote.remoteParams"  rows="10" >
                    </textarea>
                </div>
                <div class="clear"></div>
            </div>
            <div class="attribute-form-group"  style="width:33%;float: left">
                <div >结果处理表达式:</div>
                <div class="attribute-form-group-r">
                    <textarea  name="remoteResult" style="height: 200px" ng-model="remote.remoteResult"  rows="10" >
                     </textarea>
                </div>
                <div class="clear"></div>
            </div>
        </div>

        <div class="tck-line"></div>
        <div class="tck-b">
            <button type="button" class="engine-btn-default" ng-click="submit()">确认</button>
            <button type="button" class="engine-btn-default" ng-click="cancel()">取消</button>
        </div>
    </form>
</div>
</body>
</html>